/**
 * @Title: AdvertisementDao
 * @Package cn.com.yiqi.wsc.dao.advertisement.entity
 * @Description: TODO
 * Copyright: Copyright (c) 2016
 * Company: 成都壹柒互动科技有限公司
 * @author 会员系统组-胥钰淋
 * @date 2017/2/27 11:54
 * @version V1.0
 */
package cn.com.yiqi.wsc.dao.advertisement;

import cn.com.artemis.framework.base.commons.persistence.CrudDao;
import cn.com.yiqi.wsc.dao.advertisement.criteria.AdvertisementCriteria;
import cn.com.yiqi.wsc.dao.advertisement.entity.AdvertisementEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *
 *@ClassName: AdvertisementDao
 * @Description: TODO
 * @author 会员系统组-胥钰淋
 * @date 2017/2/27 11:54
 *
 */
@Repository
public interface AdvertisementDao extends CrudDao<AdvertisementEntity> {

    List<AdvertisementEntity> selectList(@Param("type") Integer type, @Param("enable") Integer enable);


    List<AdvertisementEntity> selectAdsList(AdvertisementCriteria advertisement);

    int  update(AdvertisementEntity advertisementEntity);

    int delete(long id);

    AdvertisementEntity selectAdsById(long id);

    AdvertisementEntity selectUpOne(@Param("sort")  Integer sort,@Param("type")  Integer type);
}
